package com.nuanshui.heatedloan.credit.dal.mapper;

import com.nuanshui.heatedloan.credit.form.CustomerPeopleRelationshipForm;
import com.nuanshui.heatedloan.credit.vo.CustomerPeopleRelationshipVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerPeopleRelationshipMapper {
	
	  /***
	   * 新增人员基本信息
	   * @param customerPeopleRelationshipForm
	   */
      void saveCustomerPeopleRelationship(CustomerPeopleRelationshipForm customerPeopleRelationshipForm);
      
      
      /***
       * 修改人员基本信息
       * @param customerPeopleRelationshipForm
       */
      void updateCustomerPeopleRelationship(CustomerPeopleRelationshipForm customerPeopleRelationshipForm);
      
      
      /***
       * 获取人员基本信息
       * @param id
       * @return
       */
      CustomerPeopleRelationshipVO loadVO(@Param("id") String id);
      
      
      /***
       * 删除人员基本信息
       * @param id
       */
      void deleteCustomerPeopleRelationship(@Param("id") String id);
      
      /***
       * 根据用户获取其人员关系
       * @param userId
       * @return
       */
      List<CustomerPeopleRelationshipVO>  loadcustomerPeopleRelationshipVOByCusId(@Param("userId") String userId);
} 
